import request from '@/utils/request'

//通过用户id来返回对应的学院,获取用户学院
export const getUserCollege = (Id) => {
    return request.get(`/exam/T_own/getallid/${Id}`)
    // return request.get(`/exam/T_own/getall/${Id}`)
    // return request.get(`/exam/T_exam_paper/topic/getPaperCompleteInfo/${Id}`, Id)

}
//建立用户与学院的绑定关系
export const setUpUserCollege = (data) => {
    return request.post('/exam/T_own/createt_useAcademy',data)
    // return request.get(`/exam/T_exam_paper/topic/getPaperCompleteInfo/${Id}`, Id)

}

//根据用户id返回个人信息
export const getUserInfoId = (id) => {
    return request.get(`/exam/T_user/info/${id}`,id)
    // return request.get(`/exam/T_exam_paper/topic/getPaperCompleteInfo/${Id}`, Id)
}

//根据用户id返回所教科目
export const getUserSubjectId = (id) => {
    return request.get(`/exam/T_own/getSubjectsByUse/${id}`,id)
    // return request.get(`/exam/T_exam_paper/topic/getPaperCompleteInfo/${Id}`, Id)
}

//
export const setChangePassword = (data) => {
    return request.put('/exam/T_user/updatePassword',data)
    // return request.get(`/exam/T_exam_paper/topic/getPaperCompleteInfo/${Id}`, Id)
}

//修改用户信息
export const updateChangePassword = (data) => {
    return request.put('/exam/T_user/updatePassword',data)
    // return request.get(`/exam/T_exam_paper/topic/getPaperCompleteInfo/${Id}`, Id)
}

